package org.example.springioc.component;

import org.example.springioc.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserComponent {
    @Autowired
    private UserInfo userInfo;
    public void say() {
        System.out.println("UserComponent say");
        System.out.println(userInfo);
    }
}
